package calendar;

import calendar.messages.NotifyEvent;
import calendar.messages.NotifyUser;
import edu.gmu.middleware.RemoteStub;
import java.io.IOException;
import java.util.ArrayList;


/*
 * MAY BE OBSOLETE - LOOK AT CalendarSkeleton
 */

/* provides interface for callback objects to remote calendar objects */
public class CallbackIntImpl //implements CallbackInt
{
//    private RemoteStub stub = null;
//    
//    public CallbackIntImpl( RemoteStub stub )
//    {
//        this.stub = stub;
//    }
//    
//    public void notifyClientEvent( Event event, boolean appt ) throws IOException
//    {
//        NotifyEvent eventNotify = new NotifyEvent();
//        eventNotify.event = event;
//        eventNotify.appt  = true;
//        
//        stub.send(Topic.NOTIFY_EVENT, eventNotify);
//    }
//
//    public void notifyClientUser( User user, ArrayList users ) throws IOException
//    {
//        NotifyUser userNotify = new NotifyUser();
//        userNotify.user  = user;
//        userNotify.users = users;
//        
//        stub.send(Topic.NOTIFY_USER, userNotify);
//    }
}
